<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 07:49:33
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/detail.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1942015061516108ede17224-17105359%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bed059f65f935cf65d355b112917c30e55239bd8' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/detail.tpl',
      1 => 1364183646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1942015061516108ede17224-17105359',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rs' => 0,
    'lang' => 0,
    'index' => 0,
    'none' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_516108ee253db',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_516108ee253db')) {function content_516108ee253db($_smarty_tpl) {?><?php if (!is_callable('smarty_block_detail_table')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/block.detail_table.php';
?><?php $_smarty_tpl->smarty->_tag_stack[] = array('detail_table', array('flow'=>'sale','from'=>$_smarty_tpl->tpl_vars['rs']->value['detail'],'action'=>array('view'),'op_show'=>array('add','edit'),'thead'=>array($_smarty_tpl->tpl_vars['lang']->value['product_no'],$_smarty_tpl->tpl_vars['lang']->value['product_name'],'flow_config',$_smarty_tpl->tpl_vars['lang']->value['price'],'flow_mantissa','flow_multi_storage',$_smarty_tpl->tpl_vars['lang']->value['total_money'],'flow_sale_discount','flow_sale_after_discount'))); $_block_repeat=true; echo smarty_block_detail_table(array('flow'=>'sale','from'=>$_smarty_tpl->tpl_vars['rs']->value['detail'],'action'=>array('view'),'op_show'=>array('add','edit'),'thead'=>array($_smarty_tpl->tpl_vars['lang']->value['product_no'],$_smarty_tpl->tpl_vars['lang']->value['product_name'],'flow_config',$_smarty_tpl->tpl_vars['lang']->value['price'],'flow_mantissa','flow_multi_storage',$_smarty_tpl->tpl_vars['lang']->value['total_money'],'flow_sale_discount','flow_sale_after_discount')), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

<tr index="<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
" class="<?php echo $_smarty_tpl->tpl_vars['none']->value;?>
" >
<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"> 
	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('id'=>"span_product",'view'=>"product_no",'width'=>"115",'class'=>"t_left")); $_block_repeat=true; echo smarty_block_td(array('id'=>"span_product",'view'=>"product_no",'width'=>"115",'class'=>"t_left"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][product_id]" id="product_id" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['product_id'];?>
" jqproc class="w80">
		<input type="text" name="temp[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][product_no]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['product_no'];?>
" url="<?php echo U('AutoComplete/ProductSale');?>
" jqac class="w80">
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('id'=>"span_product",'view'=>"product_no",'width'=>"115",'class'=>"t_left"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('id'=>"span_product_name",'view'=>"product_name",'width'=>"100",'class'=>"t_left")); $_block_repeat=true; echo smarty_block_td(array('id'=>"span_product_name",'view'=>"product_name",'width'=>"100",'class'=>"t_left"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

	<?php echo $_smarty_tpl->tpl_vars['item']->value['product_name'];?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('id'=>"span_product_name",'view'=>"product_name",'width'=>"100",'class'=>"t_left"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_color",'view'=>"color_name",'width'=>"66")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_color",'view'=>"color_name",'width'=>"66"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][color_id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['color_id'];?>
" <?php if (C('STORAGE_COLOR')==1){?> onchange="$.getProductInfoById(this);" <?php }?>>
		<input type="text" name="color_name" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['color_name'];?>
" url="<?php echo U('AutoComplete/color');?>
" jqac>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_color",'view'=>"color_name",'width'=>"66"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_size",'view'=>"size_name",'width'=>"66")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_size",'view'=>"size_name",'width'=>"66"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][size_id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['size_id'];?>
" <?php if (C('STORAGE_SIZE')==1){?> onchange="$.getProductInfoById(this);" <?php }?>>
		<input type="text" name="size_name" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['size_name'];?>
" url="<?php echo U('AutoComplete/size');?>
" jqac>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_size",'view'=>"size_name",'width'=>"66"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_quantity",'view'=>"dml_quantity",'width'=>"56",'tfoot'=>array('total_quantity'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_quantity']),'tfoot_id'=>"total_quantity",'class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_quantity",'view'=>"dml_quantity",'width'=>"56",'tfoot'=>array('total_quantity'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_quantity']),'tfoot_id'=>"total_quantity",'class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][quantity]" class="w50" id="quantity" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_quantity'];?>
" row_total>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_quantity",'view'=>"dml_quantity",'width'=>"56",'tfoot'=>array('total_quantity'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_quantity']),'tfoot_id'=>"total_quantity",'class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_capability",'view'=>"dml_capability",'width'=>"56",'class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_capability",'view'=>"dml_capability",'width'=>"56",'class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][capability]" class="w50" id="capability" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_capability'];?>
" row_total>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_capability",'view'=>"dml_capability",'width'=>"56",'class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_dozen",'view'=>"dml_dozen",'width'=>"56",'class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_dozen",'view'=>"dml_dozen",'width'=>"56",'class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][dozen]" class="w50" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_dozen'];?>
" row_total>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_dozen",'view'=>"dml_dozen",'width'=>"56",'class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('width'=>"90",'type'=>"flow_row_total",'view'=>"dml_sum_quantity",'tfoot'=>array('total_col_qn'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_sum_quantity']),'total_row_qn'=>'','class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('width'=>"90",'type'=>"flow_row_total",'view'=>"dml_sum_quantity",'tfoot'=>array('total_col_qn'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_sum_quantity']),'total_row_qn'=>'','class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_sum_quantity'];?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('width'=>"90",'type'=>"flow_row_total",'view'=>"dml_sum_quantity",'tfoot'=>array('total_col_qn'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_sum_quantity']),'total_row_qn'=>'','class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('view'=>"dml_price",'width'=>"56",'class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('view'=>"dml_price",'width'=>"56",'class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][price]" id="price" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_price'];?>
" row_total_money  class="w50">
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('view'=>"dml_price",'width'=>"56",'class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_mantissa",'view'=>"dd_mantissa",'width'=>"40")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_mantissa",'view'=>"dd_mantissa",'width'=>"40"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['mantissa'])===null||$tmp==='' ? 1 : $tmp);?>
" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][mantissa]" id="mantissa">
		<input type="checkbox" type="checkbox" onclick="$.setQuantityState(this);$.getLastQuantity(this);" <?php if ($_smarty_tpl->tpl_vars['item']->value['mantissa']==2){?>checked<?php }?>>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_mantissa",'view'=>"dd_mantissa",'width'=>"40"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_multi_storage",'view'=>'w_name','width'=>"66",'class'=>"t_left")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_multi_storage",'view'=>'w_name','width'=>"66",'class'=>"t_left"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<?php echo smarty_function_warehouse(array('hidden'=>array("name"=>"detail[".($_smarty_tpl->tpl_vars['index']->value)."][warehouse_id]",'value'=>$_smarty_tpl->tpl_vars['item']->value['warehouse_id']),'value'=>$_smarty_tpl->tpl_vars['item']->value['w_name'],'name'=>"warehouse_name"),$_smarty_tpl);?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_multi_storage",'view'=>'w_name','width'=>"66",'class'=>"t_left"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('id'=>"sum_money",'class'=>"t_right",'tfoot'=>array('total_col_money'=>''),'total_row_money'=>'','tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_money']))); $_block_repeat=true; echo smarty_block_td(array('id'=>"sum_money",'class'=>"t_right",'tfoot'=>array('total_col_money'=>''),'total_row_money'=>'','tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_money'])), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_money'];?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('id'=>"sum_money",'class'=>"t_right",'tfoot'=>array('total_col_money'=>''),'total_row_money'=>'','tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_money'])), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 
	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('view'=>"dml_discount",'width'=>"46",'type'=>"flow_sale_discount",'class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('view'=>"dml_discount",'width'=>"46",'type'=>"flow_sale_discount",'class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
	
		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][discount]" id="discount" class="w40" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_discount'];?>
" row_total_disount>%
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('view'=>"dml_discount",'width'=>"46",'type'=>"flow_sale_discount",'class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('width'=>"121",'class'=>"t_right",'view'=>"dml_discount_money",'type'=>"flow_sale_after_discount",'tfoot_id'=>"total_after_discount_money",'total_row_dis_money'=>'','tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_discount_money']),'tfoot'=>array('total_col_dis_money'=>''))); $_block_repeat=true; echo smarty_block_td(array('width'=>"121",'class'=>"t_right",'view'=>"dml_discount_money",'type'=>"flow_sale_after_discount",'tfoot_id'=>"total_after_discount_money",'total_row_dis_money'=>'','tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_discount_money']),'tfoot'=>array('total_col_dis_money'=>'')), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<?php echo $_smarty_tpl->tpl_vars['item']->value['dml_discount_money'];?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('width'=>"121",'class'=>"t_right",'view'=>"dml_discount_money",'type'=>"flow_sale_after_discount",'tfoot_id'=>"total_after_discount_money",'total_row_dis_money'=>'','tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_discount_money']),'tfoot'=>array('total_col_dis_money'=>'')), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php echo smarty_function_detail_operation(array(),$_smarty_tpl);?>

</tr>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_detail_table(array('flow'=>'sale','from'=>$_smarty_tpl->tpl_vars['rs']->value['detail'],'action'=>array('view'),'op_show'=>array('add','edit'),'thead'=>array($_smarty_tpl->tpl_vars['lang']->value['product_no'],$_smarty_tpl->tpl_vars['lang']->value['product_name'],'flow_config',$_smarty_tpl->tpl_vars['lang']->value['price'],'flow_mantissa','flow_multi_storage',$_smarty_tpl->tpl_vars['lang']->value['total_money'],'flow_sale_discount','flow_sale_after_discount')), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php }} ?>